<%--
  Created by IntelliJ IDEA.
  User: mingz
  Date: 2018/5/1
  Time: 13:52
  To change this tdictionarylate use File | Settings | File Tdictionarylates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/static/plugins/easyui/themes/bootstrap/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/plugins/easyui/themes/icon.css">
    <script type="text/javascript" src="/static/plugins/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugins/easyui/jquery.easyui.min.js"></script>
    <!--引入中文包-->
    <script type="text/javascript" src="/static/plugins/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/index.js"></script>

    <script type="text/javascript" src="/static/js/dictionary.js"></script>
</head>
<body>
    <%--布局面板--%>
    <div id="cc" class="easyui-layout" fit="true">
        <div data-options="region:'west',title:'数据类型',split:true" style="width:500px;">
            <%--数据类型表格--%>
            <table id="dictionary_datagrid">
            </table>
        </div>
        <div data-options="region:'center',title:'数据类型明细'" style="padding:5px;background:#eee;">
            <%--数据类型明细表格--%>
            <table id="dictionarydetail_datagrid" class="easyui-datagrid">
            </table>
        </div>
    </div>
    <%--数据类型--%>
    <%--按钮--%>
    <div id="dictionary_toolbar">
        <a class="easyui-linkbutton" iconCls="icon-add" data-options="plain:true" data-cmd="add"/>新增</a>
        <a class="easyui-linkbutton" iconCls="icon-edit" data-options="plain:true" data-cmd="edit" />编辑</a>
        <a class="easyui-linkbutton" iconCls="icon-remove" data-options="plain:true" data-cmd="del" />删除</a>
    </div>
    <%--表单按钮--%>
    <div id="form_btn">
        <a class="easyui-linkbutton" iconCls="icon-add" data-options="plain:true" data-cmd="saved"/>保存</a>
        <a class="easyui-linkbutton" iconCls="icon-edit" data-options="plain:true"  data-cmd="cancel">取消</a>
    </div>
    <%--类型明细--%>

    <div id="dictionarydetail_toolbar">
        <a class="easyui-linkbutton" iconCls="icon-add" data-options="plain:true" data-cmd="adddetail"/>新增</a>
        <a class="easyui-linkbutton" iconCls="icon-edit" data-options="plain:true" data-cmd="editdetail" />编辑</a>
        <a class="easyui-linkbutton" iconCls="icon-remove" data-options="plain:true" data-cmd="deldetail" />删除</a>
    </div>
    <%--表单按钮--%>
    <div id="detailform_btn">
        <a class="easyui-linkbutton" iconCls="icon-add" data-options="plain:true" data-cmd="savedetail"/>保存</a>
        <a class="easyui-linkbutton" iconCls="icon-edit" data-options="plain:true"  data-cmd="cancel">取消</a>
    </div>

    <%--类型弹出窗口--%>
    <div id="dictionary_dialog" class="easyui-dialog" data-options="title:'编辑',iconCls:'icon-myedit',closed:true">
        <!--创建表单-->
        <form id="dictionary_form" method="post">
            <table align="center" style="margin-top:15px">
                <input type="hidden" name="id"/>
                <%--修改为并列--%>
                <tr>
                    <td align="center">数据类型编号:
                    <input name="sn" class="easyui-textbox"  prompt="请输入类型编号" /></td>
                </tr>
                <tr>
                    <td align="center">数据类型名称:
                    <input name="name" class="easyui-textbox"  prompt="请输入数据类型名称"/></td>
                </tr>
                <tr>
                    <td align="center">数据类型简介:
                        <input name="info" class="easyui-textbox"  prompt="请输入数据类型名称"/></td>
                </tr>
            </table>
        </form>
    </div>

    <div id="dictionarydetail_dialog" class="easyui-dialog" data-options="title:'编辑',iconCls:'icon-myedit',closed:true">
        <!--创建表单-->
        <form id="dictionarydetail_form" method="post">
            <table align="center" style="margin-top:15px">
                <%--修改为并列--%>
                <tr>
                    <td align="center">数据类型:
                        <input name="dictionaryId" class="easyui-combobox" prompt="请选择数据类型"
                               data-options="panelHeight:'auto',textField:'name',
                               valueField:'id',url:'/dictionary/listAll.do'"/>
                    </td>
                    <tr>
                    <td align="center">明细名称:
                        <input name="name" class="easyui-textbox"  prompt="请输入数据类型名称"/></td>
                </tr>
                <tr>
                    <td align="center">明细简介:
                        <input name="info" class="easyui-textbox"  prompt="请输入数据类型名称"/></td>
                </tr>
            </table>
        </form>

    </div>
</body>
</html>
